﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using SQLite;

namespace PracticalNEU.Models
{
    [SQLite.Table("today_weather")]
    public class TodayWeather
    {
        /// <summary>
        /// 城市。
        /// </summary>
        [JsonProperty(PropertyName = "city")]
        [PrimaryKey]
        public string City { get; set; }

        /// <summary>
        /// 日期。
        /// </summary>
        [JsonProperty(PropertyName = "date")]
        public string Date { get; set; }

        /// <summary>
        /// 星期
        /// </summary>
        [JsonProperty(PropertyName = "week")]
        public string Week { get; set; }

        /// <summary>
        /// 天气。
        /// </summary>
        [JsonProperty(PropertyName = "wea")]
        public string Weather { get; set; }

        /// <summary>
        /// 当前温度。
        /// </summary>
        [JsonProperty(PropertyName = "tem")]
        public int CurrentTemp { get; set; }

        /// <summary>
        /// 最高温度。
        /// </summary>
        [JsonProperty(PropertyName = "tem1")]
        public int MaxTemp { get; set; }

        /// <summary>
        /// 最低温度。
        /// </summary>
        [JsonProperty(PropertyName = "tem2")]
        public int MinTemp { get; set; }

        /// <summary>
        /// 风向。
        /// </summary>
        [JsonProperty(PropertyName = "win")]
        public string Win { get; set; }

        /// <summary>
        /// 风速。
        /// </summary>
        [JsonProperty(PropertyName = "win_speed")]
        public string WinSpeed { get; set; }

        /// <summary>
        /// 空气指标。
        /// </summary>
        [JsonProperty(PropertyName = "air")]
        public int Air { get; set; }

        /// <summary>
        /// PM2.5指数
        /// </summary>
        [JsonProperty(PropertyName = "air_pm25")]
        public int AirPm { get; set; }

        /// <summary>
        /// 空气等级
        /// </summary>
        [JsonProperty(PropertyName = "air_level")]
        public string AirLevel { get; set; }

        /// <summary>
        /// 小贴士。
        /// </summary>
        [JsonProperty(PropertyName = "air_tips")]
        public string Tip { get; set; }
    }
}
